<template>
  <div>
    <ul class="list">
      <li>
        <div class="left">
          <div class="top">
            <span>￥</span>
            <span>3</span>
          </div>
          <div class="bottom">无门槛红包</div>
        </div>
        <div class="right">
          <div class="top">单本免邮券</div>
          <div class="bottom">有效期至：2018.10.06 23:59</div>
        </div>
      </li>
      <li>
        <div class="left">
          <div class="top">
            <span>￥</span>
            <span>3</span>
          </div>
          <div class="bottom">无门槛红包</div>
        </div>
        <div class="right">
          <div class="top">单本免邮券</div>
          <div class="bottom">有效期至：2018.10.06 23:59</div>
        </div>
      </li>
    </ul>
    <div class="hasnolist">
      暂无买书红包
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      index: '0',
      list: [1]
    }
  },
  methods: {
    changeActive(index) {
      this.index = index
    }
  }
}
</script>
<style lang="scss" scoped>
.hasnolist {
  text-align: center;
  margin-top: 200rpx;
  font-size: 28rpx;
  color: #666;
}
.list {
  padding: 18rpx;
  li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30rpx;
    height: 180rpx;
    box-sizing: border-box;
    padding: 35rpx;
    border-radius: 10rpx;
    background-color: #c85051;
    text-align: center;
    color: #fff;
    .left {
      width: 220rpx;
      flex-shrink: 0;
      border-right: 1rpx dotted #fff;
      .top {
        line-height: 70rpx;
        & > span:first-child {
          font-size: 32rpx;
        }
        & > span:last-child {
          font-size: 48rpx;
        }
      }
    }
    .right {
      width: 420rpx;
      flex-grow: 1;
      .top {
        line-height: 70rpx;
        font-size: 36rpx;
        font-weight: 800;
        letter-spacing: 5rpx;
      }
    }
    .bottom {
      line-height: 40rpx;
      font-size: 24rpx;
    }
  }
}
</style>

